package com.situ.shoplook.common.service;

import com.github.pagehelper.PageInfo;
import com.situ.shoplook.common.model.Order;
import com.situ.shoplook.common.model.Order;
import com.situ.shoplook.common.model.ShoppingCart;
import com.situ.shoplook.common.model.User;

import java.util.List;

/**
 * @Author xinchen
 * @Date: 2024/09/03/ 10:20
 * @Description
 */
public interface OrderService {
    int save(Order order) throws Exception;

    int remove(Integer[] ids);

    int update(Order order) throws Exception;

    PageInfo<Order> searchByPage(Integer page, Integer limit, Order order);

    Order selectByOrderNo(String orderNo, Long userId);

    String saveOrder(User user, List<ShoppingCart> myshopCart);
}
